package com.shiro.test.mvc.util;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2020/11/26 0026.
 */
public class MessageUtil {

    public static Map<String,Object> getSuccessResult(String message) {

        HashMap<String, Object> result = new HashMap<>();
        result.put("status",true);
        result.put("message",message);
        return result;
    }

    public static Map<String,Object> getErrorResult(String message) {

        HashMap<String, Object> result = new HashMap<>();
        result.put("status",false);
        result.put("message",message);
        return result;
    }
}
